﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="SaleDiscount.Portal._Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<script language="javascript" type="text/javascript">
    function pageLoad() {
        if (window.top.location != window.location) {
            window.top.location = window.location;
            return;
        }
        var bounds = $common.getClientBounds();
        var size = $common.getSize($get('divLogin'));
        $common.setLocation($get('divLogin'), { x: Math.floor((bounds.width - size.width) / 2), y: Math.floor((bounds.height - size.height) / 2) });

        $get('<%=txtUserName.ClientID %>').focus();
    }
</script>

<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
            <asp:ScriptReference Name="AjaxControlToolkit.Compat.Timer.Timer.js" Assembly="AjaxControlToolkit" />
            <asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" />
        </Scripts>
    </asp:ScriptManager>
    <div class="Login" id="divLogin">
        <center>
            <div class="Caption">
                ebay Sale Discount Tool
            </div>
            <table cellpadding="0" cellspacing="0" border="0" class="Form">
                <tr>
                    <td>
                        User Name
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server" MaxLength="30" ToolTip="Login Name"
                            TabIndex="2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Password
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" MaxLength="20" TextMode="Password" ToolTip="Password"
                            TabIndex="3"> </asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_Click" Text="Welcome Login" TabIndex="4" SkinID="Button150" />                            
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblMessage" runat="server" ForeColor="red" />
                    </td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
